package com.forekenow.Demo3;

public class Swallow extends Bird{
    public void fly(){
        System.out.println("fly````");
    }
    public static void main(String[] args) {
        Swallow swallow1 = new Swallow();
        swallow1.setName("老虎");
        swallow1.fly();
        swallow1.eat();

        Swallow swallow2 = new Swallow();
        swallow2.setName("士大夫");
        swallow2.fly();
        swallow2.eat();
    }

}
